<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>

    <%@include file="/WEB-INF/jsp/comm/head.jsp"%>

</head>
<body>

<div>

    <div id="ba">
        <button type="button" class="btn btn-primary" onclick="prepareGrant()">
            <i class="glyphicon glyphicon-plus"></i>角色授权
        </button>
    </div>
        <table
        id="role"
        data-toggle="table"
        data-striped="true"
        data-url="${cxt}/role/role/list"
        data-toolbar="#ba"
        >
            <thead>
                <tr>
                    <th data-radio="true"></th>
                    <th data-field="id" class="text-center">角色编号</th>
                    <th data-field="roleName" class="text-center">角色名称</th>
                </tr>
            </thead>
        </table>

    <div id="grant" >
        <div id="tree"></div>
    </div>
</div>
<%@include file="/WEB-INF/jsp/comm/foot.jsp"%>
<script src="${ctx}/static/myjs/role.js"></script>
</body>
</html>
